<?php
require_once('libs/Smarty.class.php');
session_start(); 
session_unset();
require_once('include/oracle.php');
require_once('include/validation_class.php');
require_once('include/config_color.php');
require_once('include/ngonngu.php');

$smarty = new Smarty();
/****************************************************/
$smarty->template_dir = 'smarty/templates';
$smarty->compile_dir = 'smarty/templates_c';
$smarty->cache_dir = 'smarty/cache';
$smarty->config_dir = 'smarty/configs';
$javascript ='<link href="style/style1.css" rel="stylesheet" type="text/css" />';
$smarty->assign('javascript', $javascript);

$smarty->assign('lbl_themmoi', $VN_template_admin[ADD]);
$smarty->assign('lbl_phanquyen', $VN_template_admin[RIGHT]);
$smarty->assign('lbl_sua', $VN_template_admin[EDIT]);
$smarty->assign('lbl_xoa', $VN_template_admin[DEL]);
$smarty->assign('lbl_xemds', $VN_template_admin[VIEW]);
$smarty->assign('lbl_changepassdb', $VN_template_admin[PASS]);

$styletable = '
<script type="text/javascript">
theWidth = document.body.clientWidth;
theHeight = document.body.clientHeight;
var main = document.getElementById("main");
if(main){
	main.style.height = theHeight + "px";
}
var maincontent = document.getElementById("r_content");

var content = document.getElementById("content");
if(content){
	content.style.height = maincontent.clientHeight;
	//content.style.height = "1000px";
	content.style.width = "100%";
}
/*var menu = document.getElementById("menu");
if(menu){
	menu.style.height = maincontent.clientHeight;
}
*/
</script>
';
$smarty->assign('styletable', $styletable);
$smarty->display('admin.tpl');
?>